package sz.szsmk.citizencard.mvp.contract;

import java.util.List;

import sz.szsmk.citizencard.model.network.bean.response.QueryBusLineNearbyRes;
import sz.szsmk.citizencard.model.network.bean.response.QueryNearStandbyRes;
import sz.szsmk.citizencard.ui.base.IBaseContact;

/**
 * Copyright (c)2018
 * author: zdh
 * created on: 2018/6/4 19:59
 * description:
 */
public interface IQueryLineByNameContact {

    interface IQueryLineByNamePresenter<T extends IBaseContact.IBaseView> extends IBaseContact.IBasePresenter {
        void queryLineByLineName(String data);


        void queryBusStandByKey(String key);

    }

    interface IQueryLineByNameView extends IBaseContact.IBaseView {
        // 获得数据失败
        void queryLineByLineNameFail(QueryBusLineNearbyRes response);

        void queryLineByLineNameSucc(QueryBusLineNearbyRes busLineArrayList);

        void queryBusStandByKeySucc(List<QueryNearStandbyRes.BusSiteListBean> busSiteList);

        void queryBusStandByKeyFail();
    }

}
